<template>
  <div class="hello">
    <h2>东软HIS</h2>
    <el-table :data="msg" style="width: 100%">
          <el-table-column  prop="registName" label="名称" width="180"></el-table-column>
          <el-table-column  prop="registFee" label="金额" width="180"></el-table-column>
          <el-table-column prop="registQuota" label="挂号数量"></el-table-column>
    </el-table>
    <el-button @click="submitClick">测试</el-button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  mounted:function(){
    //this.submitClick();
  },
  data () {
    return {
      msg: [{
        registName:'111',
        registFee:'222',
        registQuota:'333'
      }]
    }
  },
  methods:{
    submitClick(){
      let _this = this;
      this.$axios.get("/neusys/user/toadd")
      .then(response =>{
        _this.msg = response.data.regLvList;
      })
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
